package com.designpatterns.singleton;

public class DatabaseConnection {
	private static DatabaseConnection databaseConnection = null;
	
	private DatabaseConnection() {
	}
	
	public static DatabaseConnection getInstance() {
		if(databaseConnection == null) {
			return new DatabaseConnection();
		}
		return databaseConnection;
	}
	
	public void insert() {
		System.out.println("INSERT...");
	}
	
	public void update() {
		System.out.println("UPDATE...");
	}
	
	public void delete() {
		System.out.println("DELETE...");
	}
}
